﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinformToolkit.Navigations
{
    /// <summary>
    /// 表示一个菜单内容页面
    /// </summary>
    public class ContentControl : UserControl, IContentLifetimeHook
    {
        /// <summary>
        /// 该页面所对应的菜单项
        /// </summary>
        public WFMenuItem MenuItem { get; internal set; }

        public virtual void OnInitialize()
        {
        }

        public virtual void OnLoaded()
        {
        }

        public virtual void OnUnload()
        {
        }
    }
}
